export const tableOption = {
  labelPosition: "left",
  labelSuffix: "：",
  labelWidth: 120,
  gutter: 0,
  menuBtn: true,
  align: "center",
  stripe: true,
  submitBtn: true,
  submitText: "提交",
  emptyBtn: true,
  emptyText: "清空",
  menuPosition: "center",
  border: true,
  index: true,
  indexLabel: "序号",
  addBtn: false,
  editBtn: false,
  delBtn: false,
  cellBtn: true,
  menuWidth: 150,
  searchMenuSpan: 6,
  searchEnter: true,
  column: [
    {
      label: "流程图号",
      prop: "flowChartNo",
      type: "input",
      span: 12,
    },
    {
      label: "产品类别",
      prop: "productLineType",
      type: "select",
      dicUrl: "/admin-api/o3-workorder/hdviewapiitem/getCategory",
      props: {
        label: "productCategory",
        value: "productCategory",
      },
      dicMethod: "get",
      search: true,
      filterable: true,
      searchLabelWidth: 100,
    },
    {
      type: "select",
      label: "品号",
      span: 12,
      display: true,
      prop: "articleNumber",
      cell: true,
      filterable: true,
      dicUrl: "/admin-api/o3-workorder/workordercps/getItemCodeList",
      props: {
        label: "label",
        value: "value",
      },
      dicMethod: "get",
      search: true,
    },
    {
      type: "input",
      label: "标准工时",
      prop: "standardWorkHours",
      span: 12,
      width: 100,
      display: true,
      hide: false,
      formatter: (val) => {
        if (val.standardWorkHours == undefined) {
          return "--";
        } else {
          return val.standardWorkHours + " (分/件)";
        }
      },
    },
    {
      prop: "createBy",
      span: 12,
      width: 120,
      type: "input",
      label: "创建人",
      dicUrl: "/admin/user/getAllUser",
      props: {
        label: "name",
        value: "username",
      },
      dicMethod: "get",
      display: false,
      hide: false,
    },
    {
      prop: "createTime",
      span: 12,
      width: 150,
      type: "datetime",
      label: "创建时间",
      format: "yyyy-MM-dd HH:mm:ss",
      display: false,
      hide: false,
      valueFormat: "yyyy-MM-dd HH:mm:ss",
    },
  ],
};
